3.1.10 \(\int \sqrt {1-\coth ^2(x)} \, dx\) [10]

Optimal. Leaf size=3 \[ \text {ArcSin}(\coth (x)) \]

[Out]

arcsin(coth(x))

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 3, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3738, 4207, 222} \begin {gather*} \text {ArcSin}(\coth (x)) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[1 - Coth[x]^2],x]

[Out]

ArcSin[Coth[x]]

Rule 222

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSin[Rt[-b, 2]*(x/Sqrt[a])]/Rt[-b, 2], x] /; FreeQ[{a, b}
, x] && GtQ[a, 0] && NegQ[b]

Rule 3738

Int[(u_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> Int[ActivateTrig[u*(a*sec[e + f*x]^2)^p]
, x] /; FreeQ[{a, b, e, f, p}, x] && EqQ[a, b]

Rule 4207

Int[((b_.)*sec[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Dist[b*(ff/
f), Subst[Int[(b + b*ff^2*x^2)^(p - 1), x], x, Tan[e + f*x]/ff], x]] /; FreeQ[{b, e, f, p}, x] &&  !IntegerQ[p
]

Rubi steps

\begin {align*} \int \sqrt {1-\coth ^2(x)} \, dx &=\int \sqrt {-\text {csch}^2(x)} \, dx\\ &=\text {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,\coth (x)\right )\\ &=\sin ^{-1}(\coth (x))\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(20\) vs. \(2(3)=6\).
time = 0.01, size = 20, normalized size = 6.67 \begin {gather*} \sqrt {-\text {csch}^2(x)} \log \left (\tanh \left (\frac {x}{2}\right )\right ) \sinh (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[1 - Coth[x]^2],x]

[Out]

Sqrt[-Csch[x]^2]*Log[Tanh[x/2]]*Sinh[x]

________________________________________________________________________________________

Maple [A]
time = 0.42, size = 4, normalized size = 1.33

method result size
derivativedivides \(\arcsin \left (\coth \left (x \right )\right )\) \(4\)
default \(\arcsin \left (\coth \left (x \right )\right )\) \(4\)
risch \(-\sqrt {-\frac {{\mathrm e}^{2 x}}{\left ({\mathrm e}^{2 x}-1\right )^{2}}}\, {\mathrm e}^{-x} \left ({\mathrm e}^{2 x}-1\right ) \ln \left ({\mathrm e}^{x}+1\right )+\sqrt {-\frac {{\mathrm e}^{2 x}}{\left ({\mathrm e}^{2 x}-1\right )^{2}}}\, {\mathrm e}^{-x} \left ({\mathrm e}^{2 x}-1\right ) \ln \left ({\mathrm e}^{x}-1\right )\) \(67\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1-coth(x)^2)^(1/2),x,method=_RETURNVERBOSE)

[Out]

arcsin(coth(x))

________________________________________________________________________________________

Maxima [C] Result contains complex when optimal does not.
time = 0.50, size = 19, normalized size = 6.33 \begin {gather*} i \, \log \left (e^{\left (-x\right )} + 1\right ) - i \, \log \left (e^{\left (-x\right )} - 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1-coth(x)^2)^(1/2),x, algorithm="maxima")

[Out]

I*log(e^(-x) + 1) - I*log(e^(-x) - 1)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1-coth(x)^2)^(1/2),x, algorithm="fricas")

[Out]

0

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {1 - \coth ^{2}{\left (x \right )}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1-coth(x)**2)**(1/2),x)

[Out]

Integral(sqrt(1 - coth(x)**2), x)

________________________________________________________________________________________

Giac [C] Result contains complex when optimal does not.
time = 0.39, size = 26, normalized size = 8.67 \begin {gather*} {\left (i \, \log \left (e^{x} + 1\right ) - i \, \log \left ({\left | e^{x} - 1 \right |}\right )\right )} \mathrm {sgn}\left (-e^{\left (2 \, x\right )} + 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1-coth(x)^2)^(1/2),x, algorithm="giac")

[Out]

(I*log(e^x + 1) - I*log(abs(e^x - 1)))*sgn(-e^(2*x) + 1)

________________________________________________________________________________________

Mupad [B]
time = 1.18, size = 3, normalized size = 1.00 \begin {gather*} \mathrm {asin}\left (\mathrm {coth}\left (x\right )\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1 - coth(x)^2)^(1/2),x)

[Out]

asin(coth(x))

________________________________________________________________________________________